public class showBreak{ 
  public static void main( String args[] ){
outer: 
     while(true)
       for(int i=0;i<10;i++){
        System.out.print(i+" ");
        if (i>4)
          break outer;
      }   
  } 
}  